package com.light.roller;

import org.anddev.andengine.engine.Engine;

import com.badlogic.gdx.math.Vector2;
import com.huw.debuger.FileIO;
import com.smile.menu.MenuButton;
import com.smile.menu.MenuForm;

public class BigMenuWorld1 extends BigMenu{
	
		public Engine initialize(Vector2 cameraCenter)
		{
			lowestStageNum = 1;
			heightestStageNum = 10;
			
			
			String lockedPicText = "lockedSpot";
			String openPicText = "world1OpenSpot";
			
			this.backGroundPicString = "BigMenuWorld1";
			
			Engine engine = super.initialize(cameraCenter);		
			
			stages = new Class<?>[]
                                 	{
                                 		Roller_T1.class,
                                 		Roller_T2.class,
                                 		Roller_2.class,
                                 		Roller_1.class,                                 		
                                 		Roller_S10.class,
                                 		Roller_3.class,
                                 		Roller_S3.class,		
                                 		Roller_S4.class,
                                 		Roller_S8.class,
                                 		Roller_S18.class,

                                 	};

				picText = new String[]
           	                   {
           						  "logo_T1",
           						  "logo_T2",
           						  "logo_2",
           						  "logo_1",
           						  "logo_S10",
           						  "logo_3",
           						  "logo_S3",
           						  "logo_S4",
           						  "logo_S8",
           						  "logo_S18",
           	                   };
				
			stageString= getStageNameArray();

			
			spotPositionList = new Vector2[]{
					new Vector2(76,195),
					new Vector2(242,215),
					new Vector2(185,69),
					new Vector2(355,35),
					new Vector2(360,118),
					new Vector2(505,110),
					new Vector2(570,150),
					new Vector2(710,230),
					new Vector2(773,79),
					new Vector2(835,40)

			};	
			menuButtons = new MenuButton[]
			             		                    {
			             								new MenuButton(this, (int)spotPositionList[0].x,(int)spotPositionList[0].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[1].x,(int)spotPositionList[1].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[2].x,(int)spotPositionList[2].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[3].x,(int)spotPositionList[3].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[4].x,(int)spotPositionList[4].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[5].x,(int)spotPositionList[5].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[6].x,(int)spotPositionList[6].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[7].x,(int)spotPositionList[7].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[8].x,(int)spotPositionList[8].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[9].x,(int)spotPositionList[9].y,this.menuManager),
			             							};
			for(int i=0;i<this.menuButtons.length;i++)
			{
				menuButtons[i].setLockedPicText(lockedPicText);
				menuButtons[i].setOpenPicText(openPicText);
				
			}

			
	        return engine;
		}
		
		static public String[] getStageNameArray()
		{
			return new String[]
        	       {
					  "Where We \n" +
					  "           Come In",
					  "The \n      Tower",
					  "Hall Of \n       Needles",
					  "The \n      Barrier",
					  " Platforms",
					  "A Familiar \n                Place",
					  " Acrophobia",
					  " Bypass",
					  "Storage \n            Room",
					  "The \n      Crossroads",

                  };
		}
		

}
